<?php 
	$event = $this->event;
?>
			<!-- Start: box Comment -->
			<a name="comment_section"></a>
            <div class="my-box">
                <div class="top">
                    <div class="float-left"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/bulletExpand.jpg" alt="Expand" id="t-luu-but" onclick="ShowHideArea('t-luu-but')" /><span>Lưu bút</span></div>
                </div>
                <div class="content02" id="luu-but">
                    <div class="comment">
                        <div>
                            <div class="inputMess"> 
                            	<?php if($this->user->uid > 0){?>
                            		<?php if($this->isCanAdd){?>
                            	<strong style="display:block;padding-bottom:5px;">Nhập nội dung lời nhắn:</strong>
	                            <?php 
	                            	$avatar = EVENT_STATIC_SERVER."/images/nophoto.gif";
	                            	if($this->user->picture){
	                            		$avatar = "/".$this->user->picture;
	                            	}
	                            	$avatar = "http://img.tamtay.vn".$avatar;
	                            ?>
                                <div class="float-left"><a href="http://www.tamtay.vn/home/<?php echo $this->user->name;?>"><img src="<?php echo $avatar;?>" width="60" /></a></div>
                                <div class="text">
                                    <fieldset style="border:0;padding:0;">
                                    	<div style="margin-top: 2px;">
											<?
											$smilley = $this->smilleyToolbar();
											foreach($smilley as $index => $symbol)
											{
												echo '<div style="float: left; width: 26px; text-align: center; margin-top: 2px;"><a href="#" title=\'' . $symbol . '\' onclick="event_comment.insertSymbol(\'' . $symbol . '\'); return false;"><img src="http://img.tamtay.vn/misc/smilley/' . $index . '.gif" border="0"></a></div>';
											}
											?>
											<div style="clear: both"></div>
										</div>
										<div><textarea id="comment_content" name="comment_content"></textarea></div>
                                    </fieldset>
                                    <input name="" type="button" value="Gửi" class="button float-left" onclick="event_comment.saveComment(<?php echo $event->eid;?>, '')"/>
                                    <!-- <div class="dinhKem"> Có thể gửi kèm: <a href="#"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/icons/bulletImage.gif" alt="comment" /></a> <a href="#"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/icons/icon_film.gif" alt="comment" /></a> </div> -->
                                    <div class="clear"></div>
                                </div>
                                <?php }
	                                else{
	                                ?>
                                <span><em>Bạn không có quyền viết bình luận cho sự kiện. Hãy liên hệ với quản trị sự kiện để biết thêm chi tiết.</em></span>
                                <?php 
	                                }
                                }
                                else{
                                ?>
                                <span><em>Bạn phải đăng nhập mới có thể viết bình luận.</em></span>
                                <?php 
                                }
                                ?>
                            </div>
                            <div style="text-align: center; display:none;" id="cmt_loader">
			                    <img src="<?php echo EVENT_STATIC_SERVER;?>/images/loader.gif"/>
			                </div>
                            <div id="comment_area">
                            	<script language="JavaScript">
									event_comment.loadComment(<?php echo $event->eid?>, 0);
								</script>
	                            
	                        </div>
                            <div class="clear"></div>
                        </div>
                        <div>
                            <div class="clear"></div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- End: box comment -->